/************************************************************************/
/*  IL = Infrastructure Layer                                           */
/************************************************************************/
#ifndef __IL_GLOBAL_H__
#define __IL_GLOBAL_H__

#include "AbstractLayer\ILDataType.h"
#include "vmsys.h"
#include "vmchset.h"
#include "vmgraph.h"
#include "vmres.h"
#include "vmio.h"
#include "vmstdlib.h"
#include <string.h>
#include "vmtel.h"
#include "vmtimer.h"
#include <stdio.h>


#define IL_UNUSED(a) ((void)a)
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
#define IL_MAX(a,b) ((a)>=(b)?(a):(b))
#define IL_MIN(a,b) ((a)>=(b)?(b):(a))
#define IL_ABS(a) ((a)>=0?(a):-(a))
#define LAYER_NULL (-1)
#define IL_POINT_IN_RECT(x,y,rect) ((x>rect.x) && (x<rect.x+rect.w) && (y>rect.y) && (y<rect.y+rect.h))

#define IL_COLOR_TRANS VM_COLOR_888_TO_565(0, 0, 17)

#endif/*__IL_GLOBAL_H__*/